<%@include file="aaa.jsp"%>
<%
String msg = (String)request.getParameter("msg");
String outputMsg = "";
if ((msg != null)) {
	if ((msg != null) && msg.equals("registered")) {
		outputMsg = "Your user has been registered successfully in the system !";
    }
    else if (msg.equals("requestsent")) {
    	outputMsg = "Your request has been sent to the owner!";
    }
    else if (msg.equals("lent")) {
		outputMsg = "The item " + (String)request.getParameter("title") + " was lent to " + (String)request.getParameter("friend") + " !";
	}
	else if (msg.equals("alreadylent")) {
		outputMsg = "The item " + (String)request.getParameter("title") + " is already lent by someone!";
	}
	else if (msg.equals("returned")) {
		outputMsg = "User " + (String)request.getParameter("user") + " has returned the item " + (String)request.getParameter("item");
	}
	else if (msg.equals("itemsaved")) {
		outputMsg = "This item was saved in the db !";
	}
%>
	<div style='clear:both; height:30px;'>
		<span style='color:#8888FF; font-size:15px; font-weight:bold;'>
			<%= outputMsg %>
		</span>
	</div>
<%
}
%>